package com.ruoyi.material.service;

import java.util.List;
import com.ruoyi.material.domain.SysUserMaterial;

/**
 * 资料评分Service接口
 * 
 * @author hsx
 * @date 2022-01-09
 */
public interface ISysUserMaterialService 
{
    /**
     * 查询资料评分
     * @param userId
     * @param materialId
     * @return
     */
    public SysUserMaterial selectSysUserMaterialById(Long userId,Long materialId);

    /**
     * 查询资料评分列表
     * 
     * @param sysUserMaterial 资料评分
     * @return 资料评分集合
     */
    public List<SysUserMaterial> selectSysUserMaterialList(SysUserMaterial sysUserMaterial);

    /**
     * 新增资料评分
     * @param list
     * @param materialId
     * @return
     */
    public int insertSysUserMaterial(List<Long> list,Long materialId);

    /**
     * 修改资料评分
     * 
     * @param sysUserMaterial 资料评分
     * @return 结果
     */
    public int updateSysUserMaterial(SysUserMaterial sysUserMaterial);

}
